
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/style.css"/>
    <link href="assets/css/codemirror.css" rel="stylesheet">
    <link rel="stylesheet" href="assets/css/ace.min.css" />
    <link rel="stylesheet" href="font/css/font-awesome.min.css" />
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
    <![endif]-->
    <script src="js/jquery-1.9.1.min.js"></script>
    <script src="assets/js/bootstrap.min.js"></script>
    <script src="assets/js/typeahead-bs2.min.js"></script>
    <script src="assets/js/jquery.dataTables.min.js"></script>
    <script src="assets/js/jquery.dataTables.bootstrap.js"></script>
    <script src="assets/layer/layer.js" type="text/javascript" ></script>
    <script src="assets/laydate/laydate.js" type="text/javascript"></script>
    <script src="js/displayPart.js" type="text/javascript"></script>
    <title>拆单</title>
</head>

<body>
<div class="margin clearfix">
    <div class="Shops_Audit">
        <div class="Numbering">原订单编号:<b>20160705445622</b></div></div>
 <div class="detailed_style">
 <!--收件人信息-->
     <div class="Receiver_style">
    
     <div class="Info_style clearfix">
		 <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 公司名称： </label>
         <div class="o_content"> ×××××公司</div>
        </div> 
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 物品名称： </label>
         <div class="o_content">19312312302</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 产品编号： </label>
         <div class="o_content">MHDJH123456HP</div>
        </div>
      
		 <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 数量： </label>
         <div class="o_content">3000</div>
        </div><div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 商品类型： </label>
         <div class="o_content">48V电池</div>
        </div>
		 <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 产品颜色： </label>
         <div class="o_content">黑色</div>
        </div>
		
		 <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 支付方式： </label>
         <div class="o_content">在线支付</div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 原订单编号： </label>
         <div class="o_content">201607080001</div>
        </div>
       <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 创建时间： </label>
         <div class="o_content">2016-12-15 20:45:05</div>
        </div>
		<div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 成交时间： </label>
         <div class="o_content">2016-12-15 20:45:15</div>
        </div>
		<div class="col-xs-3"> 
         <label class="label_name" for="form-field-2"> 交易号： </label>
         <div class="o_content">2016121521001001760291925163</div>
        </div>
		 <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 总价： </label>
         <div class="o_content">22000</div>
        </div>
     </div>
	 
</div>
       
        <div class="audit_list">
            <table class="table table-striped table-bordered table-hover" id="sample-table">
                <thead>
                <tr>
                    <th  width="50px">序号</th>
                    <th width="80px">原订单号</th>
					<th width="80px">订单类型</th>
                    <th width="80px">产品编号</th>
					 <th width="80px">公司名称</th>
                    <th width="100">产品名称</th>
                    <th width="100">型号</th>
                    <th  width="80px">现订单号</th>
                    <th width="80px">产品颜色</th>
                    <th width="80px">拆分数</th>
                    <th width="100">操作</th>
                    <th width="100">已拆分</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>1</td>
                    <td width="80px">20160705445622</td>
					<th >线上</th>
                    <td>MHDJH123456HP</td>
					<td>×××××公司</td>
                    <td>旭派电池</td>
                    <td>48V电池</td>
                    <td>1160705445622</td>
                    <td>黑色</td>
                    <td class="sj_sl"><input onclick="change_jack(this)" placeholder="1000/个" type="text"/></td>
                    <td><button class="btn btn-primary save_bc disabled">保存</button></td>
                    <td class="td-status">已拆单</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td width="80px">20160705445622</td>
					<th >线上</th>
                    <td>MHDJH123456HP</td>
					<td>×××××公司</td>
                    <td>旭派电池</td>
                    <td>48V电池</td>
                    <td>1360705445622</td>
                    <td>黑色</td>
                    <td class="sj_sl"><input onclick="change_jack(this)" placeholder="1000/个" type="text"/></td>
                    <td><button class="btn btn-primary save_bc disabled">保存</button></td>
                    <td class="td-status">已拆单</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td width="80px">20160705445622</td>
					<th >线下</th>
                    <td>MHDJH123456HP</td>
					<td>×××××公司</td>
                    <td>旭派电池</td>
                    <td>48V电池</td>
                    <td>1260705445622</td>
                    <td>黑色</td>
                    <td class="sj_sl"><input onclick="change_jack(this)" placeholder="1000/个" type="text" /></td>
                    <td><button class="btn btn-primary save_bc disabled">保存</button></td>
                    <td class="td-status">已拆单</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="clearfix cl"></div>
 	<span class="add_name" style="color:red">注意:拆单后的订单总数不能大于和或小于拆前的总数</span>
 </div>
            <div class="Button_operation">
                <button onClick="javascrtpt:window.location.href='Order_split.html'" class="btn btn-primary radius" type="button"><i class="icon-save "></i>确定</button>		
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script>
    function change_jack(that){
        $(that).parent().next().children().removeClass("disabled");
    };
    $(function () {
        $(".save_bc").on('click',function(){
            var int_val=$(this).parent().prev().children().val();
            $(this).removeClass("btn-primary").addClass("btn-success");
            if(!int_val.trim())return;
            $(this).parent().prev().children().val(int_val+'/个');
        });
    });
    $(function () {
        $(".displayPart").displayPart();
    });
    
    /*店铺-删除*/
    function member_del(obj,id){
        layer.confirm('确认要删除吗？',{icon:0,},function(index){
            $(obj).parents("tr").remove();
            layer.msg('已删除!',{icon:1,time:1000});
        });
    }
    //面包屑返回值
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.iframeAuto(index);
    $('.Refund_detailed').on('click', function(){
        var cname = $(this).attr("title");
        var chref = $(this).attr("href");
        var cnames = parent.$('.Current_page').html();
        var herf = parent.$("#iframe").attr("src");
        parent.$('#parentIframe').html(cname);
        parent.$('#iframe').attr("src",chref).ready();;
        parent.$('#parentIframe').css("display","inline-block");
        parent.$('.Current_page').attr({"name":herf,"href":"javascript:void(0)"}).css({"color":"#4c8fbd","cursor":"pointer"});
        //parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
        parent.layer.close(index);

    });
    function article_save_submit(){
        window.location.href='inventory.html';
    }
    function layer_close(){
        window.location.href='inventory.html';
    }

</script>

